彻底解决Could not transfer artifact org.apache.maven.plugins问题 |
您所在的位置:网站首页 › could not transfer artificat › 彻底解决Could not transfer artifact org.apache.maven.plugins问题 |
今天在学习maven框架的时候出现Could not transfer artifact org.apache.maven.plugins问题,后面根据很多博客综合总结,终于解决了,现在分享一下我的方法 1、首先保证你的settings配置没问题
2、maven中的settings.xml文件中的镜像资源配置,代码如下 alimaven central aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ junit junit Address/ http://jcenter.bintray.com/ central配置阿里云的镜像资源。 3、更改idea中的settings设置,解决证书等问题,向File - settings中的maven - importing中添加这句 -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true 点击other settings选项
如图所示
|
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |